<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
 $(function() {
  
 });

 var mallShopListModule = (function(){


  var upStatus = function(shopId, status, content){
    confirm("mallShopController.do?upstatus&shopid="+shopId+"&auditstatus="+status, content, "mallShopList");
  }

  var module = {
   init :function(){
    
   },
   //通过
   adopt : function (shopId, status) {
      upStatus(shopId,1,"确认通过该店铺的开店申请？");
   },
   //拒绝
   refused : function (shopId, status) {
      upStatus(shopId,5, "确认拒绝该店铺的开店申请？");
   },
   //冻结
   frozen : function (shopId, status) {
      upStatus(shopId,6, "确认冻结该店铺");
   },
   //解冻
   unfrozen : function (shopId, status) {
      upStatus(shopId, 1, "确认解除店铺冻结");
   }

  }
  return module;
 })();
</script>

<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="mallShopList" title="店铺审核" actionUrl="mallShopController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
   <t:dgCol title="店铺名称" field="shopname"  query="true"  width="120"></t:dgCol>
   <%--<t:dgCol title="userid" field="userid"   width="120"></t:dgCol>--%>
   <t:dgCol title="公司名称" field="companyname"   width="120"></t:dgCol>
   <t:dgCol title="店铺log" image="true" field="photourl"  imageSize="50,50"  width="120"></t:dgCol>
   <t:dgCol title="组织机构代码" field="organizationcode"   width="120"></t:dgCol>
   <t:dgCol title="组织机构照片" image="true" imageSize="50,50" field="organizationcodeurl"   width="120"></t:dgCol>
   <t:dgCol title="营业执照号" field="bussinessscope"   width="120"></t:dgCol>
   <t:dgCol title="营业执照照片" field="businesslicenseurl" image="true" imageSize="50,50"   width="120"></t:dgCol>
   <t:dgCol title="联系电话" field="phonenumber"   width="120"></t:dgCol>
   <t:dgCol title="地址" field="contactaddress"   width="120"></t:dgCol>
   <%--<t:dgCol title="contactareacode" field="contactareacode"   width="120"></t:dgCol>--%>
   <t:dgCol title="保证金" field="cautionmoney"   width="120"></t:dgCol>
   <t:dgCol title="邮箱" field="email"   width="120"></t:dgCol>
   <t:dgCol title="店铺状态" field="shopstatus" query="true" replace="在营_1,关闭_2,暂停_3,审核中_4,未通过_5,冻结_6"  width="120"></t:dgCol>
  <%-- <t:dgCol title="createtime" field="createtime" formatter="yyyy-MM-dd"  width="120"></t:dgCol>
   <t:dgCol title="audituserid" field="audituserid"   width="120"></t:dgCol>
   <t:dgCol title="businesslicenseno" field="businesslicenseno"   width="120"></t:dgCol>
   <t:dgCol title="contactperson" field="contactperson"   width="120"></t:dgCol>--%>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>、

   <%--审核--%>
   <t:dgFunOpt funname="mallShopListModule.adopt(id)" title="通过" exp="shopstatus#eq#4"></t:dgFunOpt>
   <t:dgFunOpt funname="mallShopListModule.refused(id)" title="拒绝" exp="shopstatus#eq#4"></t:dgFunOpt>

   <%--冻结--%>
   <t:dgFunOpt funname="mallShopListModule.frozen(id)" title="冻结" exp="shopstatus#eq#1"></t:dgFunOpt>

   <%--解除冻结--%>
   <t:dgFunOpt funname="mallShopListModule.unfrozen(id)" title="解除冻结" exp="shopstatus#eq#6"></t:dgFunOpt>
   <%--<t:dgToolBar title="录入" icon="icon-add" url="mallShopController.do?addorupdate" funname="add"></t:dgToolBar>--%>
   <%--<t:dgToolBar title="编辑" icon="icon-edit" url="mallShopController.do?addorupdate" funname="update"></t:dgToolBar>--%>
   <%--<t:dgToolBar title="查看" icon="icon-search" url="mallShopController.do?addorupdate" funname="detail"></t:dgToolBar>--%>
  </t:datagrid>
  </div>
 </div>